package com.gzhu.knowledgeAdmin.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 系统用户收藏表
 * 
 * @author giaogiao
 * @email giaogiao@gmail.com
 * @date 2023-04-22 23:18:59
 */
@Data
@TableName("t_xtyhsc_t")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_xtyhsc_t对象", description="系统用户收藏表")
public class Xtyhsc implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(value = "F_ID", type = IdType.ID_WORKER_STR)
	@NotNull(message = "修改必须指定收藏id",groups = {UpdateGroup.class})
	@Null(message = "新增不能指定收藏id",groups = {AddGroup.class})
	@ApiModelProperty(value = "收藏id")
	private String id;

	@NotNull(groups = {AddGroup.class})
	@ApiModelProperty(value = "收藏时间")
	@TableField(value = "F_SCSJ")
	private Date scsj;


	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "人员id")
	@TableField(value = "F_YHID")
	private Integer yhid;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "知识id")
	@TableField(value = "F_ZSID")
	private Integer zsid;
}
